<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="../依赖包/react.development.js"></script>
  <script src="../依赖包/react-dom.development.js"></script>
  <style>
    .active {
      color: rgb(144, 154, 163);
    }
  </style>
</head>

<body>
  <div id="root">

  </div>

  <script>
    // 创建React元素
    const element = React.createElement(
      'div',
      null,
      React.createElement('h2', {title: '北京疫情'}, '你关注的北京疫情'),
      React.createElement('p', {className: 'active'}, '北京疫情还在持续中。。。')
    )

    // 渲染React元素
    ReactDOM.render(element, document.querySelector('#root'))


  </script>
</body>

</html>